#include <Audio.h>
Public Member Functions | |
| Audio () | |
| int | initSound () |
| void | exitOpenAL () |
| void | killALData () |
| int | getSoundId () |
| int | getSoundCrashId () |
Private Attributes | |
| ALuint | sound_id |
| ALuint | sound_crash_id |
| int | play_flag |
| ALuint | boom [2] |
| ALCdevice * | dev |
| ALvoid * | data |
| ALCcontext * | context_id |
| ALuint | moving_source [2] |
|
|
A constructor. Initializes context_id. |
|
|
make exiting operations from the sources, devices, and sound data. |
|
|
returns sound id of the crash sound effect.
|
|
|
returns sound id of the background music.
|
|
|
make initialization operations about the sources, devices, and sound data.
|
|
|
delete all the buffers about the sound operation. |
|
|
a private ALuint array. It holds sound datas. |
|
|
|
|
|
a private ALuint array. Pointer to the audio data. |
|
|
a private ALuint array. It shows audio device. |
|
|
a private ALuint array. Pointer to an array of ALuint values which will store the names of the new sources. |
|
|
a private variable. It shows if the music is played before. |
|
|
a private variable. It holds id of the crash sound effect. |
|
|
a private variable. It holds id of the background music. |
1.4.6-NO